package cn.lycode.common.exception;

import cn.lycode.common.enums.ErrorEnum;
import cn.lycode.common.exception.base.BaseException;

/**
 * 业务异常
 *
 * @author lyCode
 */
public final class ServiceException extends BaseException {

    public ServiceException(String msg) {
        super(ErrorEnum.SYSTEM_ERROR.getCode(), msg);
    }

    public ServiceException(String code, String msg) {
        super(code, msg);
    }
}